//
//  MAAdvPlayerView.m
//  MateAdv
//
//  Created by 茶 on 2023/9/7.
//

#import "MAAdvPlayerView.h"

@interface MAAdvPlayerView ()

@property (nonatomic, strong) UIImageView *playerView;
@end

@implementation MAAdvPlayerView

- (instancetype)initWithImgName:(NSString *)imgName
{
    self = [super init];
    if (self) {
        _playerView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:imgName]];
        _playerView.contentMode = UIViewContentModeScaleAspectFit;
        [self addSubview:_playerView];
        [_playerView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(0);
        }];
    }
    return self;
}
@end
